package edu.lingnan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seat")
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Seat {

    @TableId(type = IdType.AUTO)
    @JsonProperty("seatId")
    @ApiModelProperty("座位编号")
    private Integer seatId;

    @TableField("seat_num")
    @JsonProperty("seatNum")
    @ApiModelProperty("座位号")
    private String seatNum;

    @TableField("r_id")
    @JsonProperty("rId")
    @ApiModelProperty("教室编号")
    private Integer rId;

    @TableField("seat_status")
    @JsonProperty("seatStatus")
    @ApiModelProperty("座位状态")
    private String seatStatus;
}
